<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FLAC: Porting from FLAC 1.1.4 to 1.2.0</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FLAC
   &#160;<span id="projectnumber">1.3.4</span>
   </div>
   <div id="projectbrief">Free Lossless Audio Codec</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Porting from FLAC 1.1.4 to 1.2.0<div class="ingroups"><a class="el" href="group__porting.html">Porting Guide for New Versions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>This module describes porting from FLAC 1.1.4 to FLAC 1.2.0. </p>
<p>There were only very minor changes to the interfaces from 1.1.4 to 1.2.0. In libFLAC, <code><a class="el" href="group__flac__format.html#gae048df385980088b4c29c52aa7207306">FLAC__format_sample_rate_is_subset()</a></code> was added. In libFLAC++, <code><a class="el" href="classFLAC_1_1Decoder_1_1Stream.html#a36100b072893e211331099e06084cfab" title="See FLAC__stream_decoder_get_decode_position()">FLAC::Decoder::Stream::get_decode_position()</a></code> was added.</p>
<p>Finally, value of the constant <code>FLAC__FRAME_HEADER_RESERVED_LEN</code> has changed to reflect the conversion of one of the reserved bits into active use. It used to be <code>2</code> and now is <code>1</code>. However the FLAC frame header length has not changed, so to skip the proper number of bits, use <code>FLAC__FRAME_HEADER_RESERVED_LEN</code> + <code>FLAC__FRAME_HEADER_BLOCKING_STRATEGY_LEN</code> </p>
</div><!-- contents -->

<hr size="1"/>
<div class="copyright">
	<!-- @@@ oh so hacky -->
	<table>
		<tr>
			<td align="left">
				Copyright (c) 2000-2009  Josh Coalson
				Copyright (c) 2011-2016  Xiph.Org Foundation
			</td>
			<td width="1%" align="right">
				<a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=13478&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
			</td>
		</tr>
	</table>
</div>
<!-- Copyright (c) 2000-2009  Josh Coalson -->
<!-- Copyright (c) 2011-2016  Xiph.Org Foundation -->
<!-- Permission is granted to copy, distribute and/or modify this document -->
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
<!-- or any later version published by the Free Software Foundation; -->
<!-- with no invariant sections. -->
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
</body>
</html>
